﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CodeFarmer.Model.Entities
{
    public  class User
    {
        public User()
        {
            this.Articles = new List<Article>();
        }

        public int ID { get; set; }
        public string UserName { get; set; }
        public string NickName { get; set; }
        public string PassWord { get; set; }
        public string PhotoUrl { get; set; }
        public string Email { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime LastLoginTime { get; set; }
        public string LastLoginIP { get; set; }
        public int State { get; set; }
        public virtual ICollection<Article> Articles { get; set; }

    }
}
